<%@ page import="java.util.Calendar,
                 com.generalynx.common.constants.WebConst"%>
<%@ page contentType="text/html; charset=Windows-1250"%>
<%@ include file="/WEB-INF/jsp/includes.jsp" %>

<%
  response.setHeader("Cache-Control","no-cache");
  response.setHeader("Pragma","no-cache");
  response.setHeader ("Content-Script-Type", "text/javascript; charset=Windows-1250");
  response.setHeader ("Content-Style-Type", "text/css; charset=Windows-1250");
  response.setHeader ("Content-Type", "text/html; charset=Windows-1250");
  response.setDateHeader ("Expires", 0);
%>

<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title><tiles:getAsString name="title" /></title>
  <script type="text/javascript">
    var _serverTS = <%=Calendar.getInstance().getTimeInMillis()%>;
    var yesterday = new Date(<%=System.currentTimeMillis()%> - 24 * 60 * 60 * 1000);
  </script>
  <script type="text/javascript" src="<%=WebConst.FRONTCONTROLLER%>/js/servertime.js" charset="Windows-1250"></script>
  <script type="text/javascript" src="<%=WebConst.FRONTCONTROLLER%>/js/calendar-management.js" charset="Windows-1250"></script>
  <script type="text/javascript" src="<%=WebConst.FRONTCONTROLLER%>/js/simplecalendar.js" charset="Windows-1250"></script>
  <script type="text/javascript" src="<%=WebConst.FRONTCONTROLLER%>/js/tree.js.jsp" charset="Windows-1250"></script>
  <link rel="stylesheet" href="<%=WebConst.FRONTCONTROLLER%>/css/head.css.jsp" type="text/css"/>
  <link rel="stylesheet" href="<%=WebConst.FRONTCONTROLLER%>/css/navigation.css.jsp" type="text/css"/>
  <link rel="stylesheet" href="<%=WebConst.FRONTCONTROLLER%>/css/ecos.css.jsp" type="text/css"/>
  <link rel="stylesheet" href="<%=WebConst.FRONTCONTROLLER%>/css/foot.css.jsp" type="text/css"/>
  <link rel="stylesheet" href="<%=WebConst.FRONTCONTROLLER%>/css/tree.css.jsp" type="text/css"/>
  <link rel="stylesheet" href="<%=WebConst.FRONTCONTROLLER%>/css/calendar.css.jsp" type="text/css"/>
  <meta http-equiv="contentType" content="text/html; charset=UTF-8"/>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" id="maintable">
  <tr>
    <td id="head" colspan="2">
      <div style="width:100%; text-align: right; vertical-align: bottom; padding: 10px 10px 0px 5px;">

        <div id="logocontainer">
            <img id="logo" src="<%=WebConst.FRONTCONTROLLER%>/images/an_logo.jpg" alt="Egida connector service" width="150" heigth="120" />
        </div>
        <div id="springlogo">
            <%--<img src="spring_80x15.png" />--%>
        </div>
      </div>

      <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr id="menubar">

          <td>
            <module:menu level="1" renderer="com.generalynx.common.web.navigation.TopMenuTextItemRenderer">
            </module:menu>
          </td>

          <td style="text-align: right; padding-right: 15px;">
            <c:if test="${user != null}">
                  <!-- JSP: izpisi uporabnika -->
                  <b><spring:message code="username" />:</b>
                  <div class="menuitem first"><c:out value="${user.username}" /></div>
                  <div class="menuitem"><a href="<%=WebConst.FRONTCONTROLLER%>/login.htm?logoff=true" ><spring:message code="logoff" /></a></div>
            </c:if>
          </td>
        </tr>
      </table>

    </td>
  </tr>
  <tr>
    <td id="navigationbar">
        <div class="menu">
            <module:menu renderer="com.generalynx.common.web.navigation.NoLinksMenuItemRenderer" level="2" >
                <div class="menu">
                  <module:menu renderer="com.generalynx.common.web.navigation.SimpleMenuItemRenderer">
                  </module:menu>
                </div>
            </module:menu>
        </div>
    </td>

    <td id="main">
    <tiles:insert name="body" />
    </td>
  </tr>
  <tr>
    <td id="foot" colspan="2">
      <table id="pagebottom" class="small" width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="leftcell">
            <a target="_blank" href="http://www.agencijanet.si/">Agencija NET</a>
          </td>
          <td style="text-align: center;">
            <a href="mailto:ales.justin@gmail.com">Feedback</a>
          </td>
          <td style="text-align: right;">
            <span id="serverClock"></span>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<script type="text/javascript">
  showTime();
</script>

</body>
</html>
